package hackthon.quartz;

import hackthon.core.MailSenderQueue;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * Created by wuwenhao on 15/1/8.
 */
public class AutoSend {

    @Autowired
    public MailSenderQueue mailSenderQueue;

    public void autoSendEmail(){
        while(mailSenderQueue.pollEmail()!=null){

        }
    }
}
